package com.chengcang.api.modules.sys.utile;

import com.chengcang.api.modules.sys.vo.SysProductTreeVo;
import com.chengcang.common.utils.TreeNode;
import com.google.common.collect.Lists;

import java.util.ArrayList;
import java.util.List;

public class PrudctTreeNode extends TreeNode<SysProductTreeVo> {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 上级ID
     */
    private Long pid;
    /**
     * 子节点列表
     */
    private List<SysProductTreeVo> children = Lists.newArrayList(new SysProductTreeVo());

    public void setChildren(List<SysProductTreeVo> children){
        this.children = children;
    }
}
